package com.clotingshoppos.modules.product.service;


import com.clotingshoppos.common.base.BaseEntity.BaseEntity;
import com.clotingshoppos.modules.product.entity.ProductEntity;
import com.clotingshoppos.common.base.BaseService.BaseService;

import java.util.List;

/**
 * @InterfaceName: ProductService
 * @Description: 产品服务层接口
 * @Author: zhandad
 * @Date: 2019-03-15 09:06
 * @Version
 */
public interface ProductService<P extends BaseEntity> extends BaseService<ProductEntity> {
    ProductEntity idToValue(ProductEntity productEntities);
    String valueToId(String value);
    List<ProductEntity> getProductList();
    List<ProductEntity> findByType(String type);
    List<ProductEntity> findBySex(String sex);
    List<ProductEntity> findByName(String name);
    List<ProductEntity> findByNameAndSize(String name, String size);
    List<ProductEntity> findByNameAndColor(String name, String color);
    ProductEntity findByNameAndSizeAndColor(String name, String size, String color);
    ProductEntity findById(ProductEntity productEntity);
}
